package cn.zhf.shop.mapper;

import cn.zhf.shop.entity.Ad;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

@Mapper
public interface AdMapper {
    int deleteByPrimaryKey(Integer adId);

    int insert(Ad record);

    int insertSelective(Ad record);

    Ad selectByPrimaryKey(Integer adId);

    int updateByPrimaryKeySelective(Ad record);

    int updateByPrimaryKey(Ad record);

    List<Ad> getAll();

    List<Ad> getAllSelected();
}